
const $http = new XMLHttpRequest();

$http.addEventListener('readystatechange' , evt => {
    if( $http.readyState === $http.DONE ) {
        console.log( $http.response );
    }
} , false);

$http.open( 'get' , '/hello' );

$http.send();